package com.usts.ms.utils;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;
import java.io.IOException;

/**
 * Created by lenovo on 2019/5/14.
 * 自定义标签的使用
 */
public class MyTag extends TagSupport {

    @Override
    public int doStartTag() throws JspException {

        JspWriter out = super.pageContext.getOut();

        try {
            out.print("<span>自定义标签输出的内容</span>");
        } catch (IOException e) {
            e.printStackTrace();
        }
        return super.doStartTag();
    }
}
